import { Entity, Column, PrimaryGeneratedColumn, AfterInsert } from 'typeorm'
import { IsEmail, IsNotEmpty, Matches } from 'class-validator'
import { Base } from './Base'

@Entity()
export class Role extends Base {
  @Column({
    nullable: false,
    unique: true,
  })
  @IsNotEmpty()
  public name!: string

  @Column({
    length: 512,
    nullable: false,
  })
  public description!: string

}
